﻿using Samples.Radio.Agent.Data;
using WindowsPhoneAudioStreaming.Audio.Streaming.Agent;

namespace Samples.Radio.Agent
{
    public class SampleAudioPlayer:AudioPlayer
    {
        protected override IAudioPlayerService InitializePlayingService()
        {
            var repository = Repository.LoadInBackground();
            return new AbsoluteRadioPlayingService(repository);
        }
    }
}
